package com.systop.party08.view;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.ListView;

/**
 * @创建者 gqf
 * @创建时间 2019/4/22
 * @描述 自定义ListView，消除与ScrollView滚动条冲突
 */
public class NestingListView extends ListView {

    public NestingListView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public NestingListView(Context context) {
        super(context);
    }

    public NestingListView(Context context, AttributeSet attrs, int defStyle) {
        super(context, attrs, defStyle);
    }

    @Override
    public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {

        int expandSpec = MeasureSpec.makeMeasureSpec(
                Integer.MAX_VALUE >> 2, MeasureSpec.AT_MOST);
        super.onMeasure(widthMeasureSpec, expandSpec);
    }
}